Can you add 2 global variables work inside a function while inside a while loop